
from sqlalchemy import INT, Column, String,  DateTime
from app.common.model import BaseModel

class RouteModel(BaseModel):
    __tablename__ = 'route'
    
    id = Column(INT,  primary_key=True, comment="自增ID")
    methods = Column(String(255), nullable=False, comment='访问方法')
    tags = Column(String(255), nullable=False, comment='标签')
    path = Column(String(255), nullable=False, comment='路径')
    endpoint = Column(String(255), nullable=False, comment='端点函数')
    update_time = Column(DateTime, nullable=False, comment='更新时间')
    description = Column(String(255), nullable=False, comment='描述')
    summary = Column(String(255), nullable=False, comment='摘要')
    permission = Column(String(255), nullable=False, comment='权限')
